package com.order.service.impl;

import com.order.dao.OrderListDao;
import com.order.pojo.OrderList;
import com.order.service.OrderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderListServiceImpl implements OrderListService {
    @Autowired
    private OrderListDao orderListDao;
    @Override
    public Integer order(OrderList order) {
        return orderListDao.order(order);
    }

    @Override
    public Boolean quit(Integer id) {
        return orderListDao.quit(id);
    }

    @Override
    public Double sumPrice(Integer orderId) {
        return orderListDao.sumPrice(orderId);
    }
}
